import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { fa_cms_channel } from '../../entities/fa_cms_channel';
import { Repository } from 'typeorm';

@Injectable()
export class ChannelService {
  constructor(@InjectRepository(fa_cms_channel) private readonly repository: Repository<fa_cms_channel>) {}

  async findOneById(id: number) {
    return await this.repository.findOne(id);
  }
}
